Skip to content

Option for commit_id.h in source tree#213

Merged
kr-t merged 2 commits into
mainfrom
commit-id
May 11, 2026
Merged

Option for commit_id.h in source tree#213
kr-t merged 2 commits into
mainfrom
commit-id

Conversation

@casaroli
Copy link
Copy Markdown
Collaborator

When we want to make a tarball source code release, stripping the git metadata,
we need to generate commit_id.h and include it in the source tree.

This adds the targets to be used for this.

@casaroli casaroli requested review from kr-t and srberard as code owners May 10, 2026 21:47
@casaroli casaroli changed the title Commit Option for commit_id.h in source tree May 10, 2026
casaroli added 2 commits May 10, 2026 21:50
When we want to make a tarball release, stripping the git metadata,
we need to generate commit_id.h and include it in the source tree.

Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
@casaroli
Copy link
Copy Markdown
Collaborator Author

casaroli commented May 10, 2026

Filename                                                         Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ocre/context.c                                                       375               155    58.67%          10                 0   100.00%         291                80    72.51%         190                95    50.00%
ocre/container.c                                                     709               381    46.26%          15                 0   100.00%         495               197    60.20%         360               223    38.06%
ocre/util/unique_random_id.c                                          21                 4    80.95%           3                 0   100.00%          29                 6    79.31%          12                 4    66.67%
ocre/util/string_array.c                                              39                18    53.85%           4                 0   100.00%          53                27    49.06%          24                14    41.67%
ocre/util/rm_rf.c                                                     66                15    77.27%           4                 0   100.00%         114                42    63.16%          44                16    63.64%
ocre/ocre.c                                                          451               191    57.65%           9                 0   100.00%         291                91    68.73%         226               131    42.04%
runtime/wamr-wasip1/wamr.c                                           298               183    38.59%           7                 0   100.00%         282               135    52.13%         162               111    31.48%
runtime/wamr-wasip1/ocre_api/core/core_mutex.c                         7                 4    42.86%           4                 3    25.00%          14                10    28.57%           2                 1    50.00%
runtime/wamr-wasip1/ocre_api/core/core_memory.c                        2                 0   100.00%           2                 0   100.00%           6                 0   100.00%           0                 0         -
runtime/wamr-wasip1/ocre_api/core/core_timer.c                        24                24     0.00%           5                 5     0.00%          43                43     0.00%          14                14     0.00%
runtime/wamr-wasip1/ocre_api/core/core_eventq.c                       19                10    47.37%           5                 2    60.00%          57                30    47.37%          10                 6    40.00%
runtime/wamr-wasip1/ocre_api/core/core_misc.c                          3                 2    33.33%           3                 2    33.33%          13                 8    38.46%           0                 0         -
runtime/wamr-wasip1/ocre_api/ocre_api.c                               18                18     0.00%           2                 2     0.00%          25                25     0.00%           6                 6     0.00%
runtime/wamr-wasip1/ocre_api/ocre_common.c                           245               163    33.47%          13                 5    61.54%         220               147    33.18%         134               107    20.15%
runtime/wamr-wasip1/ocre_api/ocre_messaging/ocre_messaging.c         225               225     0.00%           5                 5     0.00%         182               182     0.00%         118               118     0.00%
runtime/wamr-wasip1/ocre_api/ocre_timers/ocre_timer.c                272               245     9.93%           8                 6    25.00%         170               154     9.41%         146               137     6.16%
runtime/wamr-wasip1/ocre_api/utils/strlcat.c                          12                12     0.00%           1                 1     0.00%          21                21     0.00%          10                10     0.00%
common/common.c                                                       23                 1    95.65%           1                 0   100.00%          16                 2    87.50%          14                 2    85.71%
platform/posix/lstat.c                                                 1                 0   100.00%           1                 0   100.00%           3                 0   100.00%           0                 0         -
platform/posix/file_mmap.c                                            78                53    32.05%           2                 0   100.00%          61                37    39.34%          38                27    28.95%
platform/posix/memory.c                                                3                 0   100.00%           3                 0   100.00%           9                 0   100.00%           0                 0         -

Files which contain no functions:
uthash/include/uthash/utlist.h                                         0                 0         -           0                 0         -           0                 0         -           0                 0         -
runtime/wamr-wasip1/ocre_api/core/core_internal.h                      0                 0         -           0                 0         -           0                 0         -           0                 0         -
runtime/wamr-wasip1/ocre_api/ocre_api.h                                0                 0         -           0                 0         -           0                 0         -           0                 0         -
platform/posix/include/ocre/platform/log.h                             0                 0         -           0                 0         -           0                 0         -           0                 0         -
platform/posix/include/ocre/platform/config.h                          0                 0         -           0                 0         -           0                 0         -           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                               2891              1704    41.06%         107                31    71.03%        2395              1237    48.35%        1510              1022    32.32%

@kr-t kr-t merged commit 8afde85 into main May 11, 2026
32 checks passed
@kr-t kr-t deleted the commit-id branch May 11, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants